package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 添加员工
     * @param employeeDTO
     * @return
     */
    int AddUser(EmployeeDTO employeeDTO);

    /**
     * 查询员工 分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult inquire(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 根据ID查询
     */
    Employee InquireUserID(Long id);

    /**
     * 启用。禁用账户功能
     * @param status
     * @param id
     * @return
     */
    int startORForb(Integer status, Long id);

    /**'
     *修改用户信息
     * @param employeeDTO
     * @return
     */
    int UpdateUser(EmployeeDTO employeeDTO);
}
